import React, { Component } from 'react'
import { HashRouter as Router, Route, Link } from 'react-router-dom'
import Main from './../route2/Main';
import About from './../route1/About';
import Topic from './../route1/Topic';
import Home from './Home'
class IRouter extends Component {
    render() {
        return (
            <Router>
                <Home>
                    <Route  path="/main" render={()=>
                        <Main>
                            <Route path="/main/a" component={About}></Route>
                        </Main>   
                    }></Route>
                    <Route path="/about" component={About}></Route>
                    <Route path="/topic" component={Topic}></Route>
                </Home>
            </Router>
        );
    }
}
export default IRouter;